package com.lww.springcloudapi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.lww.springcloudapi.entity.parent.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 积分表
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor //无参构造
@Accessors(chain = true) //链式编程
@ApiModel(value = "TabGradeLog对象", description = "积分日志表")
public class TabGradeLog extends ParentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("Uid")
    private String Uid;

    @ApiModelProperty(value = "商品id")
    @TableField("Cid")
    private Long Cid;

    @ApiModelProperty(value = "数量")
    @TableField("Number")
    private Integer Number;

    @ApiModelProperty(value = "时间")
    @TableField("OTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @JSONField(format = "yyyy-MM-dd")
    private Date OTime;

    @Version
    private Integer version;

    @TableLogic   //逻辑删除
    private Integer deleted;

}
